package com.chuangjiangx.member.score.dao.model;

import java.util.Date;

public class InMbrScoreStream {
    private Long id;

    private Long memberId;

    private Long score;

    private Byte type;

    private Long mbrStoredStreamId;

    private Long mbrScoreGiftRuleId;

    private String orderRefundNum;

    private String orderPayNum;

    private Long postTradingScore;

    private Date createTime;

    private Date updateTime;

    private String remark;

    private Integer payEntry;

    private Long merchantUserId;

    private Long storeUserId;

    private Long storeId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Long getMbrStoredStreamId() {
        return mbrStoredStreamId;
    }

    public void setMbrStoredStreamId(Long mbrStoredStreamId) {
        this.mbrStoredStreamId = mbrStoredStreamId;
    }

    public Long getMbrScoreGiftRuleId() {
        return mbrScoreGiftRuleId;
    }

    public void setMbrScoreGiftRuleId(Long mbrScoreGiftRuleId) {
        this.mbrScoreGiftRuleId = mbrScoreGiftRuleId;
    }

    public String getOrderRefundNum() {
        return orderRefundNum;
    }

    public void setOrderRefundNum(String orderRefundNum) {
        this.orderRefundNum = orderRefundNum == null ? null : orderRefundNum.trim();
    }

    public String getOrderPayNum() {
        return orderPayNum;
    }

    public void setOrderPayNum(String orderPayNum) {
        this.orderPayNum = orderPayNum == null ? null : orderPayNum.trim();
    }

    public Long getPostTradingScore() {
        return postTradingScore;
    }

    public void setPostTradingScore(Long postTradingScore) {
        this.postTradingScore = postTradingScore;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getPayEntry() {
        return payEntry;
    }

    public void setPayEntry(Integer payEntry) {
        this.payEntry = payEntry;
    }

    public Long getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(Long merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public Long getStoreUserId() {
        return storeUserId;
    }

    public void setStoreUserId(Long storeUserId) {
        this.storeUserId = storeUserId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", score=").append(score);
        sb.append(", type=").append(type);
        sb.append(", mbrStoredStreamId=").append(mbrStoredStreamId);
        sb.append(", mbrScoreGiftRuleId=").append(mbrScoreGiftRuleId);
        sb.append(", orderRefundNum=").append(orderRefundNum);
        sb.append(", orderPayNum=").append(orderPayNum);
        sb.append(", postTradingScore=").append(postTradingScore);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", payEntry=").append(payEntry);
        sb.append(", merchantUserId=").append(merchantUserId);
        sb.append(", storeUserId=").append(storeUserId);
        sb.append(", storeId=").append(storeId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrScoreStream other = (InMbrScoreStream) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getScore() == null ? other.getScore() == null : this.getScore().equals(other.getScore()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getMbrStoredStreamId() == null ? other.getMbrStoredStreamId() == null : this.getMbrStoredStreamId().equals(other.getMbrStoredStreamId()))
            && (this.getMbrScoreGiftRuleId() == null ? other.getMbrScoreGiftRuleId() == null : this.getMbrScoreGiftRuleId().equals(other.getMbrScoreGiftRuleId()))
            && (this.getOrderRefundNum() == null ? other.getOrderRefundNum() == null : this.getOrderRefundNum().equals(other.getOrderRefundNum()))
            && (this.getOrderPayNum() == null ? other.getOrderPayNum() == null : this.getOrderPayNum().equals(other.getOrderPayNum()))
            && (this.getPostTradingScore() == null ? other.getPostTradingScore() == null : this.getPostTradingScore().equals(other.getPostTradingScore()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getPayEntry() == null ? other.getPayEntry() == null : this.getPayEntry().equals(other.getPayEntry()))
            && (this.getMerchantUserId() == null ? other.getMerchantUserId() == null : this.getMerchantUserId().equals(other.getMerchantUserId()))
            && (this.getStoreUserId() == null ? other.getStoreUserId() == null : this.getStoreUserId().equals(other.getStoreUserId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getScore() == null) ? 0 : getScore().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getMbrStoredStreamId() == null) ? 0 : getMbrStoredStreamId().hashCode());
        result = prime * result + ((getMbrScoreGiftRuleId() == null) ? 0 : getMbrScoreGiftRuleId().hashCode());
        result = prime * result + ((getOrderRefundNum() == null) ? 0 : getOrderRefundNum().hashCode());
        result = prime * result + ((getOrderPayNum() == null) ? 0 : getOrderPayNum().hashCode());
        result = prime * result + ((getPostTradingScore() == null) ? 0 : getPostTradingScore().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getPayEntry() == null) ? 0 : getPayEntry().hashCode());
        result = prime * result + ((getMerchantUserId() == null) ? 0 : getMerchantUserId().hashCode());
        result = prime * result + ((getStoreUserId() == null) ? 0 : getStoreUserId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        return result;
    }
}